package com.shiguiwu.springboot3.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 会员登录日志(MemberLoginLog)实体类
 *
 * @author STONE
 * @since 2025-10-26 13:31:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "member_login_log")
public class MemberLoginLog implements Serializable {
    @Serial
    private static final long serialVersionUID = 974818810711432168L;
    /**
     * 日志id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long logId;
    /**
     * 会员昵称
     */
    private String nickname;
    private Long memberId;

    /**
     * 会员账号
     */
    private String username;
    /**
     * 登录IP地址
     */
    private String ipaddr;
    /**
     * 登录地点
     */
    private String loginLocation;
    /**
     * 浏览器类型
     */
    private String browser;
    /**
     * 操作系统
     */
    private String os;
    /**
     * 登录状态（0成功 1失败）
     */
    private String status;
    /**
     * 提示消息
     */
    private String msg;
    /**
     * 访问时间
     */
    private LocalDateTime loginTime;




}

